package cn.doways.api.dto;


/**
 * @ClassName ResultEnum
 * @Description //TODO
 * @Author shellming
 * @Date 2019-08-08 16:56
 **/
public enum  ResultEnum {
    //成功
    SUCCESS(200,"成功的操作"),
    //错误
    ERROR(404,"错误的请求"),
    //警告
    WARN(403,"操作警告"),

    AUTH(401,"未经授权");
    private int code;
    private String msg;
    ResultEnum(int code,String msg){
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
